Skip to content

Conversation

@JM-Lab
Copy link
Contributor

@JM-Lab JM-Lab commented May 18, 2025

Unlike UserMessage and SystemMessage, AssistantMessage and ToolResponseMessage did not support the builder pattern. This PR applies the builder pattern to these classes for consistent and flexible object creation.
Additionally, the properties field in AssistantMessage has been renamed to metadata for consistency with other message types.

  • Refactor affected usages after AssistantMessage and ToolResponseMessage update
  • Added builder pattern to AssistantMessage and ToolResponseMessage.
  • Renamed the properties field to metadata in AssistantMessage for improved semantic clarity and consistency.

@JM-Lab JM-Lab closed this May 18, 2025
@JM-Lab JM-Lab deleted the add-missing-message-builder branch May 18, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant